﻿using System.Web;
using System.Web.Optimization;

namespace DS.ADSystem
{
    public class BundleConfig
    { 
        public static void RegisterBundles(BundleCollection bundles)
        { 
            ScriptRegisterBundles(bundles);
            StyleRegisterBundles(bundles); 
            //BundleTable.EnableOptimizations = true; 
        }

        public static void StyleRegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new StyleBundle("~/media/layout/css")
                .Include("~/media/css/bootstrap.css", "~/media/css/bootstrap-responsive.css", "~/media/css/font-awesome.css", "~/media/css/jquery-confirm.css", "~/media/css/style-metro.css", "~/media/css/style.css", "~/media/css/style-responsive.css","~/media/css/login.css", "~/media/css/default.css", "~/media/css/uniform.default.css", "~/media/css/error.css", "~/Content/Base/ds-category.css")
                .Include("~/media/dist/bootstrap-table.css"));
            bundles.Add(new StyleBundle("~/media/datatable/css").Include("~/media/css/select2_metro.css", "~/media/css/DT_bootstrap.css"));
            bundles.Add(new StyleBundle("~/media/bootstrap-table/css").Include("~/media/dist/bootstrap-table.css"));
            bundles.Add(new StyleBundle("~/media/fileupload/css").Include("~/media/css/query.fancybox.css", "~/media/css/jquery.fileupload-ui.css")); 
        }
        public static void ScriptRegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/media/layout/js")
                .Include("~/media/js/jquery-{version}.js", "~/media/js/jquery-migrate-1.2.1.js", "~/media/js/jquery-ui-1.10.1.custom.js", "~/media/js/bootstrap.js", "~/media/js/jquery-confirm.js","~/Scripts/jquery.AjaxMsg.js", "~/media/js/login.js", "~/media/js/jquery.slimscroll.js", "~/media/js/jquery.blockui.js", "~/media/js/jquery.cookie.js", "~/media/js/jquery.uniform.js", "~/media/js/app.js", "~/media/js/jquery.unobtrusive-ajax.js", "~/media/js/jquery.validate.js", "~/media/js/jquery.validate.unobtrusive.js")
               
                .Include("~/media/dist/bootstrap-table.js", "~/media/dist/locale/bootstrap-table-zh-CN.js"));
            bundles.Add(new ScriptBundle("~/media/datatable/js").Include("~/media/js/select2.js", "~/media/js/jquery.dataTables.js", "~/media/js/DT_bootstrap.js", "~/media/js/table-managed.js"));
            bundles.Add(new ScriptBundle("~/media/bootstrap-table/js").Include("~/media/dist/bootstrap-table.js", "~/media/dist/locale/bootstrap-table-zh-CN.js"));
            bundles.Add(new ScriptBundle("~/media/fileupload/js").Include("~/media/js/jquery.fancybox.pack.js", "~/media/js/jquery.ui.widget.js", "~/media/js/tmpl.js", "~/media/js/load-image.js", "~/media/js/canvas-to-blob.js", "~/media/js/jquery.iframe-transport.js", "~/media/js/jquery.fileupload.js", "~/media/js/jquery.fileupload-fp.js", "~/media/js/jquery.fileupload-ui.js", "~/media/js/form-fileupload.js"));
                  
               
                
               
               
                
                
                
               
                
               
        } 
    }
}